$(function () {
    $('.signup-box').show();
    $('.vcode-send').click(function () {
        if ($(this).hasClass('disable')) {
        } else {
            var self = $(this);
            var count = 60;
            self.addClass('disable')
            self.text(count + '秒后重新获取')
            var timer = setInterval(function () {
                count--;
                if (count > 0) {
                    self.text(count + '秒后重新获取')
                } else {
                    clearInterval(timer)
                    self.text('重新获取验证码')
                }

            }, 1000)
        }
    });
    //修改
    $("#submit").click(function () {
        $("#_j_signup_mobile_form").ajaxForm(function (data) {
            if (data.success) {
                popup("修改密码成功");
                setTimeout(function () {
                    location.href = "/login.html";
                }, 2000);
            } else {
                popup(data.msg);
            }
        })
    })

});